﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Dreamz
{
    class Rum2
    {
        static public void Apply()
        {
           //Adds methods invoked through events, like taking mushroom
            GameEngine.S.World[3, 1].Items["burning mushroom"].OnTake += new EventHandler(TakeFire);
        }
        static public void TakeFire()
        {
           //This gives the sad news that your character have died, and resets the game.
            UI.Console.Clear();
            UI.Console.Write("[GAME OVER]", ConsoleColor.Red);
            UI.Console.WriteLine(@"You idiot! You just set yourself on fire!");
            UI.Draw();
            Console.ReadKey();
            Console.Clear();
            GameEngine.S.Menu();

        }
    }
}
